package com.usth.service;

import java.util.List;

import com.usth.dao.ITicketsDao;
import com.usth.model.BuyTVO;
import com.usth.model.SoldTicket;

public class TicketsServiceImpl implements ITicketsService {
	private ITicketsDao ticketdao;
	

	public ITicketsDao getTicketdao() {
		return ticketdao;
	}


	public void setTicketdao(ITicketsDao ticketdao) {
		this.ticketdao = ticketdao;
	}


	public void buytickets(BuyTVO bvo) {
	this.ticketdao.buytickets(bvo);
	}


	public String pay(Double price, String card_id) {
		return this.ticketdao.pay(price, card_id);
	}

	public List<SoldTicket> percp() {
		return this.ticketdao.percp();
	}


	public void cp(int soldid) {
this.ticketdao.cp(soldid);		
	}


	public List<SoldTicket> pretp() {
		return this.ticketdao.pretp();
	}


	public void tp(int soldid) {
		this.ticketdao.tp(soldid);
	}


	public List<SoldTicket> userallt(int id) {
		return this.ticketdao.userallt(id);
	}


	public void returnticket(int id) {
		this.ticketdao.returnticket(id);
	}


	public void cancelreturn(int id) {
		this.ticketdao.cancelreturn(id);
	}


	public Double payt(int id) {
		return this.ticketdao.payt(id);
	}

}
